package com.zmn.oms.services.interfaces.orderpaydiscount;

import com.zmn.oms.model.entity.discount.OrderPayDiscount;

import java.util.List;

/**
 * 类描述：订单支付优惠明细服务
 *
 * @author yangshuangping
 * @date 2020/10/20 17:05
 */
public interface OrderPayDiscountService {
    /**
     * 根据订单ID获取支付优惠明细
     *
     * @param orderId 工单ID
     * @return
     */
    List<OrderPayDiscount> listOrderPayDiscountByOrderId(Long orderId);

    /**
     * 根据订单ID获取支付优惠明细
     *
     * @param discounts 优惠集合
     * @return
     */
    void insertList(List<OrderPayDiscount> discounts);
}
